(font-lock-default-fontify-region): Fix last
authorGerd Moellmann <gerd@gnu.org>
Fri, 19 Jan 2001 13:50:52 +0000 (13:50 +0000)
committerGerd Moellmann <gerd@gnu.org>
Fri, 19 Jan 2001 13:50:52 +0000 (13:50 +0000)
change.

lisp/font-lock.el

index 5316b110995cb9f36fc25d1dd904974b6eaf56ff..188b5de7fe8172070c6c23b4ff6c58e722c6cd05 100644 (file)
@@ -1212,10 +1212,10 @@ The value of this variable is used when Font Lock mode is turned on."
                          (point-min)))
            (goto-char beg)
            (setq beg (line-beginning-position)))
-         (setq end (or (and font-lock-multiline
-                            (text-property-any end (point-max)
-                                               'font-lock-multiline nil))
-                       (point-max)))
+         (when font-lock-multiline
+           (setq end (or (text-property-any end (point-max)
+                                            'font-lock-multiline nil)
+                         (point-max))))
          (goto-char end)
          (setq end (line-beginning-position 2))
          ;; Now do the fontification.